<?php
require_once '../utils/common.php';
checkUserValidate ();
$id = $_REQUEST['id'];
if ($id != - 1) {
	$con = mysql_connect ( host, username, password );
	if (! $con) {
		die ( 'Could not connect: ' . mysql_error () );
	}
	mysql_select_db ( db, $con );
	$sql = "set names utf8";
	mysql_query ( $sql );
	$sql = "select * from j_tab_frist where id=" . $id;
	$result = mysql_query ( $sql );
	if ($row = mysql_fetch_array ( $result )) {
		$image = ip . project . $row ['image'] ;
		$content = $row ['content'];
	}
	mysql_close ( $con );
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理系统</title>
<link href="../CSS/form.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="../js/jquery-1.10.1.js"></script>

<link href="../umeditor/themes/default/css/umeditor.css" type="text/css"
	rel="stylesheet">
	<script type="text/javascript"
		src="../umeditor/third-party/jquery.min.js"></script>
	<script type="text/javascript" charset="utf-8"
		src="../umeditor/umeditor.config.js"></script>
	<script type="text/javascript" charset="utf-8"
		src="../umeditor/umeditor.min.js"></script>
	<script type="text/javascript" src="../umeditor/lang/zh-cn/zh-cn.js"></script>


<script type="text/javascript">
	$(function(){
		
	})
</script>
</head>

<body>
	<fieldset>
		<legend>查看</legend>
		<form id="addForm" action="FristProcess.php" method="post"
			class="form" enctype="multipart/form-data">
			<ul>
				<li><label>图片:</label></li>
				<li><img src="<?=$image?>" /></li>
				<li><label>内容:</label></li>
<?php echo $content?>

			</ul>
		</form>
	</fieldset>

</body>

</html>